import os 
import config
import shutil
import time


def get_apk():
    bin_path = os.path.sep.join(['..','bin','atsnews.apk'])
    if config.isDRM:
        apk_name = config.APP_ID +'_ARM_applied_' + time.asctime().replace(' ','_').replace(':','_')+'.apk'
    else :
        apk_name = config.APP_ID + '_' + time.asctime().replace(' ','_').replace(':','_')+'.apk'
    to_path = os.path.sep.join(['..','..','AllThatApps',config.APP_ID,apk_name])
    shutil.copy( bin_path, to_path)

get_apk()
